/* 
 * File:   lib.h
 * Author: oddi
 *
 * Created on February 7, 2010, 10:22 PM
 */

#ifndef _LIB_H
#define	_LIB_H
#include "gsl/gsl_vector.h"
#include "global_definitions.h"

#ifdef	__cplusplus
extern "C" {
#endif
    

    int lib_gsl_bsearch ( gsl_vector *array, double key, double key_deriviation, int low, int high );
    int token_file(char* short_file_name, char* name_pattern, char* delim, int** token_data, int token_data_size);
    double simple_integration(double* x, double*y, int num_of_points);
    
    //vector handlers
    void lib_set_vector(vector3d*, double);
    void lib_add_vector(vector3d*, vector3d*, vector3d* sum);
    void lib_divide_vector(vector3d* in, floatdig div, vector3d* out);




#ifdef	__cplusplus
}
#endif

#endif	/* _LIB_H */

